package org.edu.modules.research.rproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Timestamp;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-科研项目成员表
 */
@TableName
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="科研项目成员表对象", description="ve_jky_project_user")
public class VeJkyProjectUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "用户id")
    private Integer jkyUserId;

    @TableField
    @ApiModelProperty(value = "项目id")
    private Integer projectId;

    @TableField
    @ApiModelProperty(value = "加入时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd hh:mm:ss")
    private Date joinTime;

    @TableField
    @ApiModelProperty(value = "主要工作及描述")
    @Length(max = 500)
    private String textId;
}
